<%@ page import="com.dzzw.Model.User" %>
<%@ page import="java.util.List" %>
<%@ page import="com.dzzw.Dao.UserDao" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix = "c" %>
<%
    int user_id = Integer.parseInt(request.getParameter("user_id"));
    List<User> list = UserDao.SelectByIdUser(user_id);
    request.setAttribute("list", list);
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>群众用户修改个人信息</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <link rel="stylesheet" href="../css/style.css">
    <style>
        html,body{
            height: 100%;
        }
        body{
            display: flex;
            justify-content: center;
            align-items: center;
            background-image: url("../image/login_bg.png");
            background-size: cover;
        }
    </style>
</head>
<body>
<div class="login-div">
    <h1>群众用户修改个人信息</h1>
    <form id="login-form" action="UserModifyServlet">
        <div class="login-form-item">
            <th>用户 ID:</th><input name="user_id" value="${list[0].user_id}"/>
        </div>
        <div class="login-form-item">
            <th>用户账号:</th><input name="user_actnumber" value="${list[1].user_actnumber}"/>
        </div>
        <div class="login-form-item">
            <th>用户密码:</th><input name="user_password" value="${list[2].user_password}"/>
        </div>
        <div class="login-form-item">
            <th>用户昵称:</th><input name="user_nickname" value="${list[3].user_nickname}"/>
        </div>
            <button class="btn-login" type="submit">修改</button>
    </form>
</div>
</body>
</html>
<script src="../js/jquery.min.js"></script>
<script src="../layui/layui.all.js"></script>
<script src="../js/common.js"></script>
